import request from '@/utils/request'

// 查询我的关注列表
export function listConcern(query) {
  return request({
    url: '/mine/concern/list',
    method: 'get',
    params: query
  })
}

// 查询我的关注详细
export function getConcern(concernId) {
  return request({
    url: '/mine/concern/' + concernId,
    method: 'get'
  })
}

// 新增我的关注
export function addConcern(data) {
  return request({
    url: '/mine/concern',
    method: 'post',
    data: data
  })
}

// 修改我的关注
export function updateConcern(data) {
  return request({
    url: '/mine/concern',
    method: 'put',
    data: data
  })
}

// 删除我的关注
export function delConcern(concernId) {
  return request({
    url: '/mine/concern/' + concernId,
    method: 'delete'
  })
}
